#include "common.h"

int main(int argc, char *argv[]){
	char src_name[MAX_FILE_NAME_LENGTH]={'\0'};
	char *dte = "string";
	FILE *file=fopen(src_name, "r+");
	printf("%s\n",get_source_line(file,src_name,dte)? "TRUE" : "FALSE");
	return 0;
}

BOOLEAN get_source_line(FILE *src_file, char src_name[], char todays_date[]){
   char print_buffer[MAX_PRINT_LINE_LENGTH]={'\0'};
   char source_buffer[MAX_SOURCE_LINE_LENGTH]={'\0'};
   static int line_number=0;

   if(fgets(source_buffer, sizeof source_buffer, src_file)!='\0'){
       line_number=line_number+1;
       sprintf(print_buffer, "%d - %s", line_number, source_buffer);
       //print_line(print_buffer, src_name, todays_date);
       return TRUE;
   }else{
       return FALSE;
   }
}
